<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let i = 1
    let end = +prompt('请输入打印的次数：')
    // while (i <= 3) {
    //   document.write(`i的值为${i} <br>`)
    //   i++
    // }
    while (i <= end) {
      document.write(`月薪过${i}万 <br>`)
      i++
    }
  </script>
</body>

</html>